package com.example.canal.strategy.service.impl;

import com.example.canal.common.annotation.DbChangeAnalyse;
import com.example.canal.common.constant.MySqlTableNames;
import com.example.canal.strategy.service.AbstractDBChangeService;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Date 2021/8/8 22:32
 */
@Slf4j
@DbChangeAnalyse(tableName = MySqlTableNames.TB_COMMODITY_INFO)
public class JobInstanceDBChangeImpl extends AbstractDBChangeService {
    @Override
    public void onInsert(List<String> data) {
        log.info("onInsert \r\ndata:{} ",data);
    }

    @Override
    public void onDelete(List<String> data) {
        log.info(" onDelete \r\n data:{} ",data);
    }

    @Override
    public void onUpdate(List<String> data,List<String> old) {
        log.info("onUpdate  data:{} \r\n old:{} ",data,old);
    }
}
